package org.petstore.persistence;

import org.petstore.domain.CartItem;

import java.math.BigDecimal;
import java.util.List;

public interface CartDAO {
    //public int deleteItemByUserIdAndItemId(String userId,String itemId);
    public int updateItemByUsernameAndItemId(String userId, String itemId, int quantity, BigDecimal totalCost);
    public CartItem selectItemByUsernameAndItemId(String userId, String itemId);
    public List<CartItem> selectItemByUsername(String userId);
    public void insertItemByUsernameAndItemId(String userId, String itemId, boolean inStock, int quantity, BigDecimal totalCost);
    public void removeItemByUsernameAndItemId(String username, String itemId);
    public void updateItemByItemIdAndPay(String username, String itemId, boolean pay);
}
